import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/schools',
    method: 'get',
    params
  })
}

export function getTeacherList(params) {
  return request({
    url: '/teachers',
    method: 'get',
    params
  })
}
export function enableTeacher(id, value) {
  return request({
    url: '/teachers/' + id + '/enable/' + value,
    method: 'put'
  })
}
export function activeTeacher(id, value) {
  return request({
    url: '/teachers/' + id + '/active/' + value,
    method: 'put'
  })
}

export function auditTeacher(id, value) {
  return request({
    url: '/teachers/' + id + '/audit/' + value,
    method: 'put'
  })
}

